
import { MongooseFactory } from "../kalend";
import { Schema } from "mongoose";

/**商户酒水表 */
const schema = MongooseFactory.Schema({

    //商户
    merchantid: {
        type: Schema.Types.ObjectId,
        ref: "merchant"
    },
    
     //商户名称
     merchantname: {
      type: String
  },
    //微信绑定的手机号
    wechatphone: {
        type: String
    },
    //微信真实姓名
    wechatrealname: {
        type: String
    },
    //微信真实姓名身份证号
    wechatidnum: {
        type: String
    },
    //微信openid
    wechatopenid:{
      type:String
    },
    status: {
        type: Number,
        default: 1
    }
});



export const merchantcashwepayModel = MongooseFactory.Model("merchatcashwepay", schema);